package com.summer.mapper;

import com.summer.entity.PlateformChannel;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PlateformChannelMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(PlateformChannel record);

    PlateformChannel selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PlateformChannel record);

    int updateByPrimaryKey(PlateformChannel record);

    /**
     * 渠道列表
     * @param params
     * @return
     */
    List<PlateformChannel> findParams(Map<String, Object> params);

    /**
     * 更新渠道状态
     * @param id
     * @param status
     */
    void updateByStatus(@Param("id") Integer id, @Param("status") Integer status);

    /**
     * 添加渠道
     * @param params
     * @return
     */
    int inset(Map<String, Object> params);

}